package com.mdb.open.epay.service.epay;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mdb.bc.database.mybatisplus.SuperService;
import com.mdb.open.epay.common.MdbDataSource;
import com.mdb.open.epay.domain.po.epay.EpQuickpayConfig;
import com.mdb.open.epay.mapper.epay.EpQuickpayConfigMapper;
import org.springframework.stereotype.Service;

/**
 * 类描述：
 *  电子支付快捷配置 服务类
 *
 * @author liuyi
 * @date 2019-11-14
 */
@Service
@DS(MdbDataSource.EPAY)
public class EpQuickpayConfigService extends SuperService<EpQuickpayConfigMapper, EpQuickpayConfig> {

    public EpQuickpayConfig get(String prodCode) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<EpQuickpayConfig>()
                .eq(EpQuickpayConfig::getProdCode, prodCode));
    }
}
